//
//  OosDaoTicket.h
//  Oos4ios
//
//  Created by Pablo Gonzalez on 3/9/11.
//

#import <Foundation/Foundation.h>
#import "../../../Utils/TimeProfiler.h"

@class GDataServiceTicketBase;

enum {DaoProgressNotKnown = NSIntegerMax};

@protocol OosDaoTicketDelegate <NSObject>

- (BOOL) cancel;

- (NSUInteger) progress;

@end


@interface OosDaoTicket : NSObject <OosDaoTicketDelegate>{
	
	int mIdentifier;
	id mSentObject;
    GDataServiceTicketBase *mGdataTicket;
    
    TimeProfiler *mProfiler;
    
}

@property (nonatomic) int identifier;

+ (OosDaoTicket *) ticket;

@property (nonatomic, retain) id sentObject;
@property (nonatomic, retain) GDataServiceTicketBase *gdataTicket;
@property (nonatomic, retain) TimeProfiler *profiler;

@end
